<template>
     <el-button  style="width: 100%;height: 100%;background-color: yellow;">
    <div>
	
	<p>{{ tag.condition }}</p>
    <p>{{ tag.code }}</p>
     </div>
   </el-button>
 </template>
   <script lang="ts" setup>
   import {ref} from "vue";
      //父级传递来的参数
    var props = defineProps({
     tag: {
     type: Object,
     default: { x: 0, y: 1, w: 1, h: 1, code: '10001',type:1,condition:"ohter" },
     },
     });
 
   </script>